﻿<Window x:Class="NetworkPower.UI.EditProject"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:NetworkPower.UI"
        mc:Ignorable="d"
        Title="编辑项目" Height="659.403" Width="800" WindowStartupLocation="CenterScreen">
    <Grid>
        <GroupBox x:Name="groupBox_Copy1" Header="安装单位" HorizontalAlignment="Left" Margin="10,305,0,0" VerticalAlignment="Top" Height="265" Width="772">
            <DataGrid x:Name="dataGridView1" Margin="391,10,27,9" AutoGenerateColumns="False" CanUserAddRows="false" ItemsSource="{Binding LoopLine}" CellEditEnding="dataGridView1_CellEditEnding">
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding UnitName}" Header="安装单位名称">
                        <DataGridTextColumn.CellStyle>
                            <Style TargetType="{x:Type DataGridCell}">
                                <!--<Setter Property="Background">
                                <Setter.Value>
                                    <Binding Converter="{StaticResource lnColorCvrt}"/>
                                </Setter.Value>
                            </Setter>-->
                            </Style>
                        </DataGridTextColumn.CellStyle>
                    </DataGridTextColumn>
                    <DataGridTextColumn Binding="{Binding SepertorName}" Header="间隔名称">
                        <DataGridTextColumn.CellStyle>
                            <Style TargetType="{x:Type DataGridCell}"/>
                        </DataGridTextColumn.CellStyle>
                    </DataGridTextColumn>
                </DataGrid.Columns>
            </DataGrid>
        </GroupBox>
        <GroupBox x:Name="groupBox_Copy" Header="间隔类型" HorizontalAlignment="Left" Margin="414,52,0,0" VerticalAlignment="Top" Height="248" Width="368" RenderTransformOrigin="0.5,0.5"/>

        <GroupBox x:Name="groupBox" Header="电压等级" HorizontalAlignment="Left" Margin="10,52,0,0" VerticalAlignment="Top" Height="248" Width="371"/>
        <Label x:Name="label" Content="项目名称" HorizontalAlignment="Left" Margin="159,10,0,0" VerticalAlignment="Top" RenderTransformOrigin="-3.776,-2.481"/>
        <TextBox x:Name="txtProjectName" HorizontalAlignment="Left" Height="23" Margin="222,13,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" IsEnabled="False" Width="386" IsReadOnly="True"/>
        <Label x:Name="lblVLevel" Content="电压等级" HorizontalAlignment="Left" Margin="25,83,0,0" VerticalAlignment="Top" RenderTransformOrigin="-3.776,-2.481"/>
        <TextBox x:Name="txtVolt" HorizontalAlignment="Left" Height="23" Margin="28,114,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
        <Button x:Name="btnVoltAdd" Content="添加" HorizontalAlignment="Left" Margin="28,142,0,0" VerticalAlignment="Top" Width="120" Click="btnVoltAdd_Click"/>
        <ListBox x:Name="lbVolt" HorizontalAlignment="Left" Height="199" Margin="170,83,0,0" VerticalAlignment="Top" Width="172" SelectionChanged="lbVolt_SelectionChanged"/>
        <Label x:Name="lblVLevel_Copy" Content="间隔类型" HorizontalAlignment="Left" Margin="437,83,0,0" VerticalAlignment="Top" RenderTransformOrigin="-3.776,-2.481"/>
        <TextBox x:Name="txtSeperatorType" HorizontalAlignment="Left" Height="23" Margin="437,114,0,0" TextWrapping="Wrap"  VerticalAlignment="Top" Width="120"/>
        <Button x:Name="btnSeperatorTypeAdd" Content="添加" HorizontalAlignment="Left" Margin="437,142,0,0" VerticalAlignment="Top" Width="120" Click="btnSeperatorTypeAdd_Click"/>
        <ListBox x:Name="lbSeperatorType" HorizontalAlignment="Left" Height="199" Margin="578,83,0,0" VerticalAlignment="Top" Width="171" SelectionChanged="lbSeperatorType_SelectionChanged"/>
        <Label x:Name="lblVLevel_Copy1" Content="安装单位名称" HorizontalAlignment="Left" Margin="25,351,0,0" VerticalAlignment="Top" RenderTransformOrigin="-3.776,-2.481"/>
        <TextBox x:Name="txtUnit" HorizontalAlignment="Left" Height="23" Margin="28,382,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="145"/>
        <Button x:Name="btnUnitAndSeperatorAdd" Content="添加" HorizontalAlignment="Left" Margin="28,426,0,0" VerticalAlignment="Top" Width="145" Click="btnUnitAndSeperatorAdd_Click" IsEnabled="False"/>
        <Button x:Name="btnInportData" Content="导入数据" HorizontalAlignment="Left" Margin="642,581,0,0" VerticalAlignment="Top" Width="140" Height="37" Click="btnInportData_Click" RenderTransformOrigin="0.46,1.317"/>
        <Label x:Name="lblVLevel_Copy2" Content="间隔名称" HorizontalAlignment="Left" Margin="194,351,0,0" VerticalAlignment="Top" RenderTransformOrigin="-3.776,-2.481"/>
        <TextBox x:Name="txtSeperatorName" HorizontalAlignment="Left" Height="23" Margin="194,382,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="148"/>

    </Grid>
</Window>
